/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package shellCommands;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

/**
 *
 * @author SOGOBA
 */
public class ContextCommande {
    private Map variables;
    enum Symbol {EUR, USD, JPY, GBP, CAD, AUD,CHF, RUB,CYN, ZAR, MXN};

    
    public ContextCommande() {
        variables = new HashMap();
        variables.put("output", "XML");
        variables.put("currency", "EUR");
        variables.put("language", "fr");
    //    variables.put("admin", "admin");
     //   variables.put("user", "user");
        variables.put("state", "false");
    }
    
    public Object getVar(String key) {
        return variables.get(key);
    }

    public Set getVarNames() {
        return variables.keySet();
    }


    public void setVar(String key, Object value) {
        variables.put(key, value);
    }

    public Object unsetVar(String key) {
        return variables.remove(key);
    }
}
